package org.jeecg.modules.car.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecg.modules.system.entity.SysSmsConfig;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@EqualsAndHashCode(exclude = {"projectName","roomId","projectId","roomName","ownerName","parkName",
        "carTypeName", "carModelName", "carNo" ,"feeRuleName","isOwnerName", "localStartTime" ,"localEndTime"
})
public class CarExVo {
  /**社区id*/
    @ApiModelProperty(value = "社区")
    private String projectId;

    @Excel(name = "项目名称", width = 15)
    @TableField(exist = false)
    private String projectName;


    /**房间id*/
    @ApiModelProperty(value = "房间")
//	@Dict(dicCode = "id",dictTable = "base_room",dicText = "name")
    private String roomId;

    @Excel(name = "房间", width = 20)
    private String roomName;
    @Excel(name = "用户类型", width = 15)
    @TableField(exist = false)
    private String isOwnerName;

    @Excel(name = "用户名称", width = 15)
    private String ownerName;


    @Excel(name = "车场", width = 15)
    @TableField(exist = false)
    private String parkName;



    @Excel(name = "车辆类型",width = 15)
    @TableField(exist = false)
    private String carModelName;
  @Excel(name = "车类名称",width = 15)
    @TableField(exist = false)
    private String carTypeName;
  /**车牌*/
    @Excel(name = "车牌", width = 15)
    @ApiModelProperty(value = "车牌")
    private String carNo;
  @ApiModelProperty(value = "车位号")
    @TableField(exist = false)
    @Excel(name = "车位号", width = 15)
    private String carPortNum;
   @TableField(exist = false)
    @Excel(name = "月租规则",width = 15)
    private String feeRuleName;
   @ApiModelProperty(value = "起始日")
    @Excel(name = "月租开始日期", width = 15,format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date localStartTime;

    @ApiModelProperty(value = "到期日")
    @Excel(name = "月租截止日期", width = 15,format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date localEndTime;












    /**同步状态(0:未同步  1:已同步)*/
    @ApiModelProperty(value = "同步状态(0:未同步  1:已同步)")
    @Excel(name="同步状态",width=15,replace={"已同步_1","未同步_0"})
    private Integer syncStatus;





}
